package com.kgc.ssm.mapper;

import com.kgc.ssm.entity.QuoteDetail;
import com.kgc.ssm.entity.QuoteDetailExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.session.RowBounds;

public interface QuoteDetailMapper {
    long countByExample(QuoteDetailExample example);

    int deleteByExample(QuoteDetailExample example);

    int deleteByPrimaryKey(Long id);

    int insert(QuoteDetail row);

    int insertSelective(QuoteDetail row);

    List<QuoteDetail> selectByExampleWithRowbounds(QuoteDetailExample example, RowBounds rowBounds);

    List<QuoteDetail> selectByExample(QuoteDetailExample example);

    QuoteDetail selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("row") QuoteDetail row, @Param("example") QuoteDetailExample example);

    int updateByExample(@Param("row") QuoteDetail row, @Param("example") QuoteDetailExample example);

    int updateByPrimaryKeySelective(QuoteDetail row);

    int updateByPrimaryKey(QuoteDetail row);
//    @Select(Select MATERIAL_CODE,MATERIAL_NAME,UNIT_PRICE,AMOUNT,SUM_PRICE,MIX_PRICE,OTHER_PRICE,TOTAL_PRICE,START_DATE,END_DATE,END_DATE from Quote q join QuoTe_DETAIL t on q.ID=t.QUOTE_ID join ENQUIRE e ON q.ENQUIRE_ID=e.ID )
    List<QuoteDetail> selectByTitles(String[] titles);
}